<!--
/**
 * moOde audio player (C) 2014 Tim Curtis
 * http://moodeaudio.org
 *
 * This Program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3, or (at your option)
 * any later version.
 *
 * This Program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * 汉化：Androidnews
 */
-->
<div id="container">
<div class="container">
    <h1 class="ren-config">Squeezelite</h1>

    <form class="form-horizontal" action="" method="post">
    	<legend>设置
			<button class="legend-config btn btn-medium btn-primary btn-submit" type="submit" name="save" value="1">保存</button>
		</legend>

        <p class="sub-legend">
			有关squeezelite命令选项的完整列表，请访问手册页<a href="https://ralph-irving.github.io/squeezelite.html" class="target-blank-link" target="_blank">https://ralph-irving.github.io/squeezelite.html</a>
		</p>

        <div class="control-group">
            <label class="control-label" for="renderer-name">名称</label>
            <div class="controls">
                <input class="config-input-large" type="text" id="renderer-name" name="config[PLAYERNAME]" value="$_sl_select[renderer_name]">
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-renderer_name" href="#notarget"><i class="fa-solid fa-sharp fa-info-circle"></i></a>
				<span id="info-renderer_name" class="config-help-info">
					将出现在LMS中的好友名称
                </span>
            </div>

            <label class="control-label" for="alsa-buffer">ALSA参数</label>
            <div class="controls">
                <input class="config-input-large" type="text" id="alsa-params" name="config[ALSAPARAMS]" value="$_sl_select[alsa_params]">
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-alsa-params" href="#notarget"><i class="fa-solid fa-sharp fa-info-circle"></i></a>
				<span id="info-alsa-params" class="config-help-info">
                    <b>b:p:f:m</b><br>
					<b>b </b>缓冲时间。如果小于500，则视为以毫秒为单位的缓冲时间，否则视为以字节为单位的大小。<br>
                    <b>p </b>期间计数。如果小于50则视为周期计数，否则大小以字节为单位。<br>
                    <b>f </b>采样格式 16|24|24_3|32<br>
                    <b>m </b>Use mmap 0|1
                </span>
            </div>

            <label class="control-label" for="output-buffers">输出缓冲器</label>
            <div class="controls">
                <input class="config-input-large" type="text" id="output-buffers" name="config[OUTPUTBUFFERS]" value="$_sl_select[output_buffers]">
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-output-buffers" href="#notarget"><i class="fa-solid fa-sharp fa-info-circle"></i></a>
				<span id="info-output-buffers" class="config-help-info">
                    流缓冲区:DSP缓冲区，以千字节为单位。必须小于可用内存。
                </span>
            </div>

            <label class="control-label" for="task-priority">任务优先级</label>
            <div class="controls">
                <input class="config-input-large" type="number" id="task-priority" name="config[TASKPRIORITY]" value="$_sl_select[task_priority]" min="1" max="99">
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-task-priority" href="#notarget"><i class="fa-solid fa-sharp fa-info-circle"></i></a>
				<span id="info-task-priority" class="config-help-info">
                	默认值为45，范围为1-99。
                </span>
            </div>

            <label class="control-label" for="audio-codecs">音频编解码器</label>
            <div class="controls">
                <input class="config-input-large" type="text" id="audio-codecs" name="config[CODECS]" value="$_sl_select[audio_codecs]">
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-audio-codecs" href="#notarget"><i class="fa-solid fa-sharp fa-info-circle"></i></a>
				<span id="info-audio-codecs" class="config-help-info">
                	<b>Default: </b>flac,pcm,mp3,ogg,aac,alac,dsd<br>
					<b>Available: </b>flac,pcm,mp3,ogg,aac,wma,alac,dsd,mad,mpg
                </span>
            </div>

            <label class="control-label" for="other-options">其他选项</label>
            <div class="controls">
                <input class="config-input-large" type="text" id="other-options" name="config[OTHEROPTIONS]" value="$_sl_select[other_options]">
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-other-options" href="#notarget"><i class="fa-solid fa-sharp fa-info-circle"></i></a>
				<span id="info-other-options" class="config-help-info">
                	<b>Default: </b>-W -D 500 -R E -S /var/local/www/commandw/slpower.sh<br>
					<b>-V [control] </b>使用ALSA控制音量，否则使用软件音量。<br>
					<b>-D [delay][:format] </b>输出设备支持DSD<br>
					[delay] = PCM和DSD之间切换的可选延迟（毫秒）<br>
					[:format] = dop（如果未指定，则为默认值）、u8、u16le、u16be、u32le或u32be。<br>
                    <b>-C [timeout] </b>播放器空闲[超时]秒后关闭输出设备。
                    默认情况是，只要播放器处于“打开”状态，就始终保持设备打开<br>
                    <b>-s [server][:port] </b>连接到指定的Logitech Media Server，否则使用自动
                    发现在本地网络上查找服务器。只有在需要时才需要此选项
                    如果自动发现不起作用，或者服务器不在本地网络上
                    例如路由器后面的网段。
                </span>
            </div>
        </div>
    </form>
</div>
</div>
